package world;

import java.util.Vector;




public class World {
	/*
	 * 
	 */
	private boolean fixedWorldGen = true;
	
	//private int worldHeight;//maximum height of world in chunks.
	private int[] worldSize ={1,1,1};
	private ChunkManager manager ;

	private double[] noiseModifer={0.05,1.5};
	
	public World()
	{
		
	}
	
	public void createNewWorld()
	{
		//world generating code goes here
		
		if(fixedWorldGen)
		{
			
			manager = new ChunkManager();
			manager.setFixedWorld(fixedWorldGen);
			manager.setWorldSize(worldSize);
			manager.setNoiseModifer(noiseModifer);
			manager.initialWorldGeneration();
		}
		
	}//creates a world
	public void loadWorld(int worldId)
	{
		
	}
	
	public void updateWorld()
	{
		//when a chunk needs to be updated call this
	
	}//updates world

	

	/**
	 * @return the manager
	 */
	public ChunkManager getManager() {
		return manager;
	}

	/**
	 * @param manager the manager to set
	 */
	public void setManager(ChunkManager manager) {
		this.manager = manager;
	}

	/**
	 * @return the fixedWorldGen
	 */
	public boolean isFixedWorldGen() {
		return fixedWorldGen;
	}

	/**
	 * @param fixedWorldGen the fixedWorldGen to set
	 */
	public void setFixedWorldGen(boolean fixedWorldGen) {
		this.fixedWorldGen = fixedWorldGen;
	}

	/**
	 * @return the worldSize
	 */
	public int[] getWorldSize() {
		return worldSize;
	}

	/**
	 * @param worldSize the worldSize to set
	 */
	public void setWorldSize(int[] worldSize) {
		this.worldSize = worldSize;
	}

	public double[] getNoiseModifer() {
		return noiseModifer;
	}

	public void setNoiseModifer(double[] noiseModifer) {
		this.noiseModifer = noiseModifer;
	}
	
	
	
}
